﻿#pragma once
#include <QObject>
#include <QObject>
#include <QToolButton>
#include<QWidgetAction>
#include<QListWidget>
#include<QMenu>
#include<QDebug>
#include<QPushButton>
#include<QEvent>
#include<QLineEdit>
#include<QTableWidget>
#include "itemWidget.hpp"
#include <QLabel>
#include<QHBoxLayout>
#include<QPainter>
#include<qmessagebox.h>
//自定义菜单项测试

class testMenu :public itemWidget
{
public:
	testMenu(QString name,QString icon,QString key);
public:
	 void onClick() override;
private:
	QLabel* iconshow;
	QLabel* nameshow;
	QLabel* shortcut_keyshow;
	QHBoxLayout* m_layout;
    QString m_name;
    QString m_icon;
    QString m_shortcut_key;
};

